package com.jeeplus.organization.service;

import com.jeeplus.organization.mapper.ChartMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 图表展示
 *
 * @author jeeplus
 * @version 2024-05-28
 */
@Service
@Transactional
public class ChartService {
    @Autowired
    private ChartMapper chartMapper;
    public Integer selectSexRatio(String postId, String sex){
        return chartMapper.sexCount(postId,sex);
    }
    public String selectStatusRatio(String postId, String status){
        return chartMapper.statusCount(postId,status);
    }
}
